
package thermologic.core;

/**
 * Groups the exceptions caused by adapter
 * malfunction.
 * 
 * @author Mauricio
 */
public abstract class AdapterException extends RuntimeException
{
    /**
     * Code for error identification
     */
    private String errorCode;
    
    /**
     * Buidls and adapter exception
     * with error code
     * 
     * @param errorCode
     * @param cause
     */
    public AdapterException(String errorCode, String message, Throwable cause)
    {
        super(message, cause);
    } 
    
    /**
     * @returnthe error code
     */
    public String gerErrorCode()
    {
        return errorCode;
    }
}
